/*****************************************************************************
* | File      	:   EPD_2IN7_T91.h
GDEY029Z94
SSD1680A
******************************************************************************/
#ifndef __EPD_2IN7_T91_H_
#define __EPD_2IN7_T91_H_

#include "../DEV_Config.h"

// Display resolution
#define EPD_2IN7_T91_WIDTH       176
#define EPD_2IN7_T91_HEIGHT      264


#define EPD_2IN7_T91_FULL 0
#define EPD_2IN7_T91_PART 1

#define EPD_2IN7_T91_Bwr4   2
#define EPD_2IN7_T91_Bwr8   3
#define EPD_2IN7_T91_Bwr16  4


// typedef enum
// {
//   FULL = 0,
//   Grey4_Bwr,
//   Grey8_Bwr,
//   Grey16_Bwr,
// } LUT_TYPE;



void EPD_2IN7_T91_Init(uint8_t lut_type=EPD_2IN7_T91_FULL);
void EPD_2IN7_T91_Clear(void);
void EPD_2IN7_T91_Display( unsigned char *BW_Image);
void EPD_2IN7_T91_Sleep(void);
void EPD_2IN7_T91_TurnOnDisplay(uint8_t part=EPD_2IN7_T91_FULL);
void EPD_2IN7_T91_Data_Write(UBYTE color,UBYTE *Image_Data,UDOUBLE index,UDOUBLE length);
void EPD_2IN7_T91_setDepth(uint8_t i);
// void EPD_2IN7_T91_Fast_TurnOnDisplay(void);
int8_t EPD_2IN7_T91_ReadTemp();
#endif
